package com.neutech.solar.entity;

import com.neutech.solar.util.ImageUtil;

import java.awt.*;

public class Background extends AbstractSolarSystemObject{
    //构造方法
    public Background(){
        this.img = ImageUtil.getImage("bg.png");
    }
    public Background( String imageName){
        this.x = 0;
        this.y = 0;
        this.img = ImageUtil.getImage(imageName);

    }

    @Override
    public void draw(Graphics g) {
        g.drawImage(img,x,y,null);
    }


}
